package com.game79.musou.webapp.action;

import com.game79.musou.model.Player;

public class ManorAction extends ActionBase {
	private int officerType = 0; //商业为0，农业为1，人口为2
	private int countryCode = 0; //蜀国为2
	private int volume; //
	private int number;
	private int ransackType = 0;
	private int times = 1; //次数，如升级商业次数
	private int exploTime; //貌似是探索次数
	private long propId; //
	private long targetId; //
	private long rcId = 1328686400048000L;
	private Player cPlayer;
	
	//function1 param times, 
	public ManorAction gatherPeople(int times){
		this.times = times;
		return this;
	}
	
	//function2 param times
	public ManorAction developTrading(int times){
		this.times = times;
		return this;
	}
	
	public ManorAction sellFood(int volume){
		this.volume = volume;
		return this;
	}
	
	public ManorAction viewManor(long id){
		this.cPlayer = new Player();
		this.cPlayer.setName("angus");
		super.setId(id);
		return this;
	}
	
	public ManorAction ransackCrops(long targetId){
		this.targetId = targetId;
		return this;
	}
	
	
	public Player getCPlayer() {
		return cPlayer;
	}

	public void setCPlayer(Player cPlayer) {
		this.cPlayer = cPlayer;
	}

	public int getOfficerType() {
		return officerType;
	}
	public void setOfficerType(int officerType) {
		this.officerType = officerType;
	}
	public int getCountryCode() {
		return countryCode;
	}
	public void setCountryCode(int countryCode) {
		this.countryCode = countryCode;
	}
	public int getVolume() {
		return volume;
	}
	public void setVolume(int volume) {
		this.volume = volume;
	}
	public int getNumber() {
		return number;
	}
	public void setNumber(int number) {
		this.number = number;
	}
	public int getTimes() {
		return times;
	}
	public void setTimes(int times) {
		this.times = times;
	}
	public int getExploTime() {
		return exploTime;
	}
	public void setExploTime(int exploTime) {
		this.exploTime = exploTime;
	}
	public long getPropId() {
		return propId;
	}
	public void setPropId(long propId) {
		this.propId = propId;
	}
	public long getTargetId() {
		return targetId;
	}
	public void setTargetId(long targetId) {
		this.targetId = targetId;
	}
	public long getRcId() {
		return rcId;
	}
	public void setRcId(long rcId) {
		this.rcId = rcId;
	}

	public int getRansackType() {
		return ransackType;
	}

	public void setRansackType(int ransackType) {
		this.ransackType = ransackType;
	}
}
